<template>
  <el-container id="app">
    <el-header>
      <img src="./assets/banner.png">
    </el-header>

    <el-main>
      <el-row :gutter="10">
        <el-col :span="12"><div class="grid-content bg-purple"><img src="./assets/p1.jpg"></div></el-col>
        <el-col :span="12"><div class="grid-content bg-purple"></div></el-col>
      </el-row>
      <el-row :gutter="10">
        <el-col :span="12"><div class="grid-content bg-purple"></div></el-col>
        <el-col :span="12"><div class="grid-content bg-purple"></div></el-col>
      </el-row>
      <div>
        <el-button @click="startHacking">Start</el-button>
      </div>
    </el-main>

    <el-footer class="footer">
      Copyright 2018
    </el-footer>
  </el-container>
</template>

<script>
export default {
  methods: {
    startHacking () {
      this.$notify({
        title: 'It works!',
        type: 'success',
        message: 'We\'ve laid the ground work for you. It\'s time for you to build something epic!',
        duration: 5000
      })
    }
  }
}
</script>

<style>
  .el-row {
    margin-bottom: 20px;
    &:last-child {
      margin-bottom: 0;
    }
  }
  .el-col {
    border-radius: 4px;
  }
  .bg-purple-dark {
    background: #99a9bf;
  }
  .bg-purple {
    background: #d3dce6;
  }
  .bg-purple-light {
    background: #e5e9f2;
  }
  .grid-content {
    border-radius: 4px;
    min-height: 36px;
  }
  .row-bg {
    padding: 10px 0;
    background-color: #f9fafc;
  }
  .footer {
    text-align: center;
  }
</style>
